package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * Created with IDEA
 * author:zhiXiang-Chen
 * Date:2019/3/2
 * Time:20:31
 */
public interface SearchDao extends ElasticsearchRepository<Article,String> {

    Page<Article> findByTitleLikeOrContentLike(String title, String content, Pageable pageable);

}
